package com.ctgu.tengyun.exception;


/**
 * 异常基类
 */
public class TengyunRuntimeException extends RuntimeException{
		
		private static final long serialVersionUID = -6748535679132417636L;
		private String reason;
		
		
		public TengyunRuntimeException(String msg) {
			this(msg, "");
		}
		
		public TengyunRuntimeException(String msg, Throwable cause) {
			this(msg, "", cause);
		}
		
		public TengyunRuntimeException(String msg, String reason) {
			super(msg);
			this.reason = reason;
		}
		
		public TengyunRuntimeException(String msg, String reason, Throwable cause) {
			super(msg, cause);
			this.reason = reason;
		}

		public String getReason() {
			return reason == null ? "" : reason;
		}
		
	}
